some fix in scale avg.