fix a bug of Card::match