fix ip address bug