Fix doubling of hash