Fixing poor hash functions.