fixed some bugs about adding cards to decks