where_terms fix