fix isHost bug