Fix bug, can change a selected button's status.