Fix hostname setting