fix replication_read