fixed some errors in the scenario.py