Fix file log bug