Fixing up replica set