It's very common to lose lucidity when you're not used to staying in the dream.

Next time you become lucid, rub your hands together and/or start walking. Focus on how your dream body feels and keep moving. Also, before you go to bed, think about what you want to do when you become lucid. That way, when you become lucid, you won't have to waste time thinking about what you hope to accomplish.