Fix small bug in Scaler class