Fixed all file modes that got corrupted at some point