Bug-fixing for adding courses