fixed getTermType()