Improve dynamic sceneIndex resolution.