Fixed reduce to match accumulate output.