Fixed the new file creation