Fix current document filename changing unexpectedly.