This always happened to me, but after reading a bit on here and a few books, I stay lucid for long periods now. I write my dreams down in the morning ( If this is any help), also the key I think is to "NOT GET EXCITED". Stay very calm.
I know this is hard some times to do if it involves any thing of a sexual nature.