fix curriculum class logic of auto cancellation