Fix Stop condition of recursive construction of tbb ranges