Fix incorretc usage of card type bits