Fix filedialog issue.