scan_preprocess for variable nb_runs; fix in set_results