Fixes an IP address parsing bug.