fix replica set