fixed bugs with CourseEnrollment