Fix constant search when no results were returned