model/view: fix a bug when teacher access lessons