Fixed some bugs when mounting the class schedules.