Fix footnotes parse order