correct a bug of course_add