Last adjustments on the document