Fixed an issue adding cards.