fixed hashing computation bug