fixed issue with hashing