Fix issue with sums