fix assertion in RadioButtonGroup