It usually happens because you get too excited when becoming lucid.
I recommend taking a look at this artice for more information on how to stabilize your dream and how to stay in the lucid dream longer.