Fix search when there is no hash