remove invalid ips