Endianness fix (I'm idiot)