TAXONOMY: fix removeTerm function