fix uninitialized memory bug in backward accumulate