fix endian value in gifti