corrected terms order plugin