Fix course delete