surface endian fix