Fix ArrayBuffer endian bug