Segmented Control bugfix

Fixed a bug that hides the current panel when the selected segment is
pressed.