Fix checking for invalid IPs