fixing all search bug