Fix primary text during ingest and also display document