fixing code in footnotes