PIO keeps downloading ESP file(s) with bug, where can I replace it?

After a couple of days… I finally found out the “factory test” file with the Heltec WiFi Kit32 V2 file has a bug in it.
If I copy the newer files from GitHub and replace them in the current project directory, the file (FINALLY!) compiles and runs (again).
But every time I create a new project, it wants to copy the same file with the bug. (that’s why ALL my new test projects failed… using it as a test to get going, because I “knew” it was working…)

Where do I copy these new(er) files onto my hard drive, so that PIO doesn’t keep stabbing me in the back? I don’t know exactly which file/library it is. It’s apparently not just the example “factory test.c” file, because even much simpler files refuse to compile (such as a simple i2c scanner, pretty much everything fails…)

All I have is this GitHub link.

Everything “should” be using the latest, as I’ve deleted everything and re-installed multiple times… So PIO has downloaded what it seems to think is the latest.

Boy, I don’t know how many times I chased that good around that bush…

Which files are you updating exactly? A library, framework code, example code? What’s the platformio.ini?

Sorry, forgot to add the link.