Fixed scala but