Fix search results

Search results not filtered correctly