fixed generic bug in ScenarioBuilder