Change initialization of replica set in the build