Fixing error that doesn't display results on 1 search result