fix bugs of mapred