Fixes bug with overlapping enrolment periods.