fix big/small endian problem with the card.