Fixes filename persisting across open file dialogs.