Fix endianness sparse errors