fixed error of creating new files