revert file mode changes