fixed problem with text input of terms using name not id