FileDialog fixes