fixed bug in mapReduce framework