fix wrong summation of values