fix to IP addrs causing int overflows