Fix TEG formatting.