Bug fix when grabbing remote IP address