bug fix for IPv6