fixed loadCourses bug