Courses edit bug fix