Fix logic when detecting whether one can continue using the previously calculated ranges_eval