fix internal and public hostname