fix table of content and document record