fixed runtime warnings for LessonDialog