Fix scala references.