Fixed bug: reference to course instead of course->id when creating a new course