Fix broken native file dialogs