echofit, correct normalization about weights in residual