result is not assigned after DeferredSummary is calculated

The issue is that when DeferredSummary is materialized, the result of calculate() is not cached.