fixing ipv4 check