getFirstEditorIndex fix.