Fix hashing bugs.