fixed hashing bug