Fixed undefined $the_terms