output correct variable when removeScaling fails