fix crash when destroy scene.