big/little endian fix