fix reduce.