fix runsim.sh