fix the file log problem.