Fix TERM export.