correct adding of courses, bug #1212