cleanup course_compact