another fix for delete client