fixed bug with segmented control