fixed hostname bug