fix ScalaSourceGenerator