Fixed error in cancel function by improperly updating a job.