fix bug in calculating local score, revise acc_weight -> weight