fix reduce example