fix for terms that don't have term_order