small fix at summation