fixed bug with enrolment start and end date comparison