Fix exit editor problem.