Fixed scala compilation error.