fixed ipv6 related bug