I had that once

I would have to go to sleep within my dream, and then I would become lucid. Whenever I woke up, within my dream, I lost my lucidity. Annoying but the lucid dream was still really cool.