bug fix in run.sh
bug fixes