fixing auto hashing