Added missing clear_classes