fixed the editor_callback method