fixed new file cancel bug (issue no. 9)