fix small error in building job objects