Fix up some syntax errors. I do not write much scala.