Fix file resource.