Fixed IP-matching bug