fixed replication not working