Bug fix in run_SCAMP