Fixing filemode changes.
Fixed all of the file mode issues (hopefully).