bug in scenario.js