Bugfixes for IP address generator