 
 extension TTSegmentedControl {
     
-    var currentIndex: Int {
+    open var currentIndex: Int {
+        if !isConfigurated {
+            return 0
+        }
         let label = labelForPoint(thumbContainerView.center)
         let index = allItemLabels.index(of: label)!
         return index

        thumbView.backgroundColor = color
    }
    
    func changeBackgroundColor(_ color: UIColor) {
        if !isConfigurated {
            return
        }

        changeThumbFrameForPoint(label.center, animated: animated)
    }
    
    open func changeTitle(_ title: String, atIndex: Int) {
        if !isConfigurated {
            return
        }
