fixed lesson fetching error when lesson DNE on db