Fix file output.