attemtped to fix loadCourse bug