fixed failing search query