fix comparisons of InetAddress