bug fix in get_course_max_level method