fixed card_compare