Thread:Extension talk:Header Tabs/Edit links not enumerating correctly (and TOC contents repeating)

I've noticed an issue where the Edit links are not enumerating correctly when the page first loads. The first tab is defaulting to edit the entire page instead of just that section. If you select another tab and then return the the first tab the edit link is correct.

The extension seems to assume there aren't any headers above the first level header. If there are it causes the edit links to link to the wrong sections; however, this only occurs on the edit links for the tabs themselves. The links for sections inside each tab enumerate correctly.

Also, if $htGenerateTabTocs is set to true, the TOC headings are being repeating twice. Up until the 2nd 2nd level header is hit within that tab.

This is on MW 1.18.1 and HT 0.9.2