tocClass bugfix