fixes the bug that the deck is not saved to a session