Fix in scenario constructor

Corrected an index out of range mistake