Fix for deleting courses.