Fix file reader