fix undefined index for other cardtype in preview