Fix file modes.