Fixed bugs when launching the cancellation activity. Reduce the penalty
for strict mode.