Fix new file creation