fix teacher bug