Possible fix for errors caused by mutations when deleting all courses