Fix bit ordering