Fixed hashing bug