newfile dialog bug fix.