Fix file index