Fixes order of footnotes.