fix hostname config issue