fix error when ip address is unknown