fixed a small problem with simulation_template