Fix an issue with sums with indirection