fix a bug when ipv6 is enabled and OLDGW gets empty.