Fixed Editor Closing