fix editor toggling