fixed issue with cPack function getNextCard()