Correct the file permissions