     public func revertAction() {
         if currentCardIndex > 0 && !animating {
             
-            if countOfCards - currentCardIndex >= defaultCountOfVisibleCards {
+            if countOfCards - currentCardIndex >= countOfVisibleCards {
                 if let lastCard = visibleCards.last {
                     lastCard.removeFromSuperview()
                     visibleCards.removeLast()

            return
        }
        
        let visibleIndexes = [Int](indexRange).filter { $0 >= currentCardIndex && $0 < currentCardIndex + defaultCountOfVisibleCards }
        visibleIndexes.forEach { index in
            let visibleCardIndex = index - currentCardIndex
            if visibleCards.count > visibleCardIndex {

        }
        
        let cardParameters = backgroundCardParametersForFrame(frameForCardAtIndex(UInt(visibleCards.count)))
        let lastCard = createCardAtIndex(UInt(currentCardIndex + countOfVisibleCards - 1), frame: cardParameters.frame)
        
        let scale = cardParameters.scale
        lastCard.layer.transform = CATransform3DScale(CATransform3DIdentity, scale.width, scale.height, 1)
