Bug in reduce task