Fixed scala style errors.