correcting file permissions