fixed bug in cardtoshow