Fix return of incorrect filename to the editor.