chaned the way jobs are handled when the search query is wrong or limit is set too high