Fixed a loading error. Creates a card by clicking on the card type in the window and then redraws