added workaround for InetAddress bug