fix bug which button display wrong when button is selected and jump to the other state