correct the hash