fixing IP address in headers