Fix the toc not being generated... most actions moved to footer.