fixed scene:leave() method