fixed bug in CourseController