reset hashes when calling setHashes