fixed the mapreduce task not running correctly