To avoid this you should just go to the bathroom before you go to bed. I had this problem when I was a kid but after I started going to the bathroom before going to sleep I never experienced it again (I went to the bathroom even though I didn't have to pee). Then later on my problem disappeared and I never wet the bed even if I drank a gallon of water and I didn't go to the bathroom. While you are on humaworm you should use this temporary fix.