fixed get IP issue