fixed hostname change issue