Fixed ip check.