IP canonicalization fix