fixed minor bug in addcommonterms condition