I hadn't PMO'd since November 13 of last year, and was aiming for a whole year fap-free, up until last night. I have very bizarre sleep problems. I'm often in a very deep sleep within five minutes of falling asleep which causes intense dreams/nightmares, heavy teeth grinding, night sweats, and I've sleepwalked at least once. Unfortunately, last night I had an intense sexual dream and, about 15 minutes later I woke up mid-orgasm. Apparently I had started fapping during my dream. I'm pretty upset about this as I had gone almost 150 days without PMO. I do recall seeing a post from another person here who had a similar experience. Any advice on what can be done to prevent this? I have also reset my counter and seeing all the lost progress is very frustrating and upsetting, especially since I will have to wait until 2015 to start my fap-free year over. I feel like I have done something terrible.