Fix jobdef
Fix reducer bug