fix some bug in simulation Perfect!