fix simulation error in Just_simulate3