run.sh bug fix