Fix segmented control

I edited some code while importing this code to https://github.com/youknowone/UI7Kit. Thanks for great work.