fix host name bug