Fixed bug of shortcut button for state