fixing the lesson controller