Task #39891: fixed troubles with EventScenario

Fixed bug with fatal error of EventScenario, added converting from ordinal to cardinal nubmer