correcting file mode changes