Fix error in cancellation