fix thrown error when switching rdfTermType