resolved button's bug