fixed scanbutton setChecked state