fix cancelled_all bug