Fix file reading.