fix reducer bugs
mapper reducer task works in this version