maxos endian fix