Fixed filedialog compatibility error