fix accumulator