Fix hashcahnge function.

Revert "made clear search work again, broken by an earlier bug"
This reverts commit 071b2a1f36ad8278e4f378ae28994040e91a427f.

Please don't nuke my entire commit because one part of the code breaks.