bug fixes when course creation