fixing hash search