Fixed a bug preventing cards from being printed