fixing bug in ScenarioDAO