CMS Anchor Current Links not working


I want to create this with a one pager but only with CMS elements:

The problem is that the nav anchor’s current state isn’t working.

I’ve create the one pager and added a the elements from the CMS onto it:

The links scrolls to the right places, but the current state isn’t working at all. It uses the same class for both pages.