Fixed issue with state ID in LevelFailed state.