Correct an error in scene.exit