file mode restored