fix future task cancellation