fix mapReduce problem