Fix constant searching in HashStrategy class