Merge pull request #36: Fixes bug in deferred sum