minor bug fix in teachers.py