Fix odd file mode