Peeing during dreams

Patient: Sir, yesterday i was in a deep sleep.i was not dreaming of peeing but when i woke up my bed was wet. This happened several Times. Doctor,please say how to prevent this.

Doctor: