fixed a button bug