Endianness fix