Bugfix for course_is_expired