Dynamic TOC erroring Webflow-link.js

Hi guys, I made a script that inject links of a Table of Contents into the post page, but it’s erroring out when I scroll, the page is the following: The Lifesaving Treatment: Understanding Dialysis

Do you have any suggestion?

Thanks,
Fredo

Hi myself from the past, I solved it by putting the insertion point inside an embed!