bugfix of select in term.