Fix file resource