Fix compilation error in scala script.