Fix get base host error