         
         _contentScrollView.addSubview(viewController.view)
         _contentScrollView.addConstraints(NSLayoutConstraint.constraints(withVisualFormat: "V:|[view]|", options: [], metrics: nil, views: ["view":viewController.view]))
-        viewController.view.leadingAnchor.constraint(equalTo: childViewControllers.last?.view.trailingAnchor ?? _contentScrollView.leadingAnchor).isActive = true
+        viewController.view.leadingAnchor.constraint(equalTo: _viewControllersStack[0].last?.view.trailingAnchor ?? _contentScrollView.leadingAnchor).isActive = true
         if let _trailing = _trailingConstraintOflastViewController {
             _contentScrollView.removeConstraint(_trailing)
         }

    private func _commitTransitionNavigationItemViews(at index: Int) {
        if let info = _transitionNavigationItemViewsInfo {
            if info.index == index {
                let viewController = childViewControllers[index]
                tabNavigationBar.commitTransitionNavigatiomItemViews(info.navigationItemViews, navigationItems: viewController.tabNavigationItems, success: true)
            } else {
                tabNavigationBar.commitTransitionNavigatiomItemViews(info.navigationItemViews, navigationItems: [], success: false)

    }
    @discardableResult
    public func removeViewController<T>(_ viewController: T) -> (Bool, UIViewController?) where T: UIViewController, T:TabNavigationReadable {
        guard let index = _viewControllersStack[0].index(of: viewController) else {
            return (false, nil)
        }
        
