fixed a bug in teacher notification