try to fix endian issue