fixes #3736 fixes crash when to enter SceneEditorTest at second time.