Course object not working in EditCourses