fixed radio/checkbutton bug