Segmented Control bug fix

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