fixing typo and making remote address only set if its real