Fixed IP checking.