bug fix: cached sum init