Fix endianness problem