Well I would ask how many hours into sleep you had directly prior to having the dream? I wouldn't say you did anything wrong. Sometimes that just happens. Have hope that this is a sign that you'll have even more LD in the near future.

I've found LD stability increases with more and more experience/recall. Also the length of the REM period you're in and depth of the sleep may have something to do with it.