bugfix in simulate_experiment