fix curriculum class deletion bug
fix curriculum, when class_state is changed, corresponding actions are done automatically.