Fix issue with sum with indirection