Fixed bug producing duplicate cards.