Fix hashing bug