Fixes bugs in the course enrolment section