Fixed warnings in SceneManager.