fix index template and footnotes