Fixed IP checking