bug fix on delete course