exit editor bugfix