Minor fix with file mode.