Fixed bug reading and writing Scenario