Fixed editor switching.