bugfix in sim.sim_base