Bugfixes in loop_res calculations for legacy mode in setup_stepwise_benchmark.py.