Fix for logging remote IP address