fix problem with segments on iOS 6