Fix BatchDelete bug