editor switching fix