bug fix for run_serial