Fix file logging issues.