Fixed bug in definition of progress_bar parameter for use by run_batch