Fix: The hash function should not alter the data