Fixing generic hashes and replacing them with proper ones.