fixed initial accumulator bug when accumulator is 0