Fix course deletion