bug fix for delete course