Fixed typo in residual scaling