fixed a file not exists bug