Fix Scala scripting.