Fix IPAddress comparison