Fix the too many results query