fix bug number of cards