Fixed the fact that courseIds can be repeated through semesters