bugfix : total bytes of a document.