Fix file access