Fixed the cancellation when deleting