If reference was increased by more than one when entering documents, the next referen...