fix txid endian issues