fixed bugs in UISegmentedControl