Fix error if only ipv6 or ipv4 is selected