Fixed the issue with endless deck.