For @sebastianrehfeldt: fixed bug in UiButtonGroup