fix invalid file permissions