Are you sure about this? cardIndex can be 0, referring to the first card.