Fixed issues with footnotes