File dialog fixes