Insert zero and bug fix in summation