fixing too many hashes generated bug