fixed hide button bug