Fix some logical errors in handling RescaleSlope/Intercept.