Fix issue #28 where segmented buttons were being deselected after selection.