Bug fixes in the ToggleButtonGroup.