fix error in lesson controller