Fix affixing of document text