fix wrong numbering on footnotes