For the bugs for empty list for ta and student when doing the enrollment and undo