fixing replication