Fixed bugs in IPAddress