Are you SURE it does that on 'it's own'
Maybe you should get rid of the pants because it's too small.
Although I used to have it with a pants too. What I did was I always made sure I pulled it up all the way and pushed the lid down so it's on the zipper, this will kinda stop it going down while it stays. And check the zipper regularly.