fix indexing of data hashes