fix a bug of transferCard