Table of contents (page numbers are not updated)

I create a table of content using the procedure copy/copy as TOC/copy.

When I compile to pdf, the pages codes are not updated and shows 1 instead of the page number
When I compile to word, it shows a question mark ? instead of the page number
Thank you for your help

I’ve got the same issue, and they’re not clickable links. Anyone know how to get around this?