fixed bug with multiple ips