             }
             tabBar.isTranslucent = true
             tabBar.frame.origin.y += delta * 1.5
-            
+
             //We take back the bar to it's original state if it is in its original position
-            if let originalTabBar = _originalTabBar {
+            if let originalTabBar = sourceTabBar {
                 if originalTabBar.frame.origin.y == tabBar.frame.origin.y {
                     tabBar.isTranslucent = originalTabBar.isTranslucent
                 }


  private func updateSizing(_ delta: CGFloat) {
    guard let topViewController = self.topViewController else { return }

    var frame = navigationBar.frame

    // Move the navigation bar
    frame.origin = CGPoint(x: frame.origin.x, y: frame.origin.y - delta)
    navigationBar.frame = frame

    maxDelay = CGFloat(delay)
    delayDistance = CGFloat(delay)
    scrollingEnabled = true

    //Added to save if tabbar state because it's important to know if tab bar is translucent since if it is not, will be changed during transition
    if let tab = followers.first(where: { (view) -> Bool in
        if view is UITabBar { return true } else { return false }
    }) as? UITabBar {
        self.sourceTabBar = UITabBar(frame: tab.frame)
        self.sourceTabBar?.isTranslucent = tab.isTranslucent
    }
    self.followers = followers
    self.scrollSpeedFactor = CGFloat(scrollSpeedFactor)
