fix duplicate chapter numbers in toc