fix little-endians