Fixed accumulator assignment bug