fix the editor