Fixed bug in terms where sub list wasn't inside an element