fix the hashing helper