undo file mode changes