fix Scala objects

Scala