Setting term id to node