Fix problem with search limits