Fix: normalize the sum to get the mean.

otherwise the result of the new base level code is wrong.