fix hostname not display bug