fix replication