fixing stampede job cancel issue