solved a button bug