fix glossary and replication toc