Fix __cleanReplicas