fix snippet
Merge pull request #338 from matiu/bug/snippet

fix snippet