Fix small reduce bug.