Fix file attributes