Little Bugs fixed when use run-sim.sh