fix card generator

Signed-off-by: Julin <zhulin_jay@163.com>