Fixes logic on search resuts page.