bug fix in run.sh