Fix IPv4 conversion