fix hashing