set a maximum number of iterations while fetching bugs