fix bug: change current editor on save