fixed the bug you found in deleteAllObjectsOfClass: