Fix in scale() in sugar module