baseCourse TypeError fixed