Fixed broken check for equal IPs