Lesson allocation fix