Fix card type error issue