fixed replication success check