Fix errors when changing the result limit