fixed bug in case radioButton and CheckBox