Fixed error when to get remote address internally