fix the reference of course_id