permission fix
Merge pull request #3 from mr-david/snap

permission fix