fix bug can delete all services (CAS-164)