fix a bug with the document renderer [deploy ASAP]