fix some file permissions