Patch prepare replicaset