Fix file mode.