fix a bug of mapreduce