fixed error for trying to delete classes when none exist