Fix bug with job cancel, did not work since 27/12/2013