fixes disappearing ToC titles on load