fixed sethost bug