fix curriculum not registered error, check if pre classes are canceled.