fixed bug in getting courses from planner