Scala snippets fix
Merge pull request #327 from ches/fixes

Scala snippets fix