fix replication always use write host