fixing patching of IP address