fixing Reduce.