fix run simulation bug