resolve the bug to delete the client