Filedialog bug fix