Fix hashing