Fix card type