fix when call stat, the file does't already exist