Fix client duplication when deleting it.