fix bug in setting button.