Fixed data format error for statebutton