Fix bugs in replication of configurations.