bug fix in BaseTerm.