fix bug about file not exist