Fixed displaying classes for teachers