fixed reduce with null accumulator