Fixed a recording scenario bug caused by the scenario generator