fix remote ip bug