correcting isCancelled()