fixed hostname saving