Update replicas correctly