FIx error with terms to occurance