If you talk about saving the site from window probes, there is no code there to do that.
Saving the position from space is after he check if there are no dreads(and save a dread site), gas haven and Friends, when he delete the site if you go back to old site.In this case he delete rhe anomaly from window probe and gohome/or take next one
After all this checks he go further, save the site, orbit and start the fight.
Best option for us to see your problem, is to see the entire log. Copy paste the log to a file, delete your name and region/system and upload him to pastebin. Put his link here. Almost every move is joined with messages, so let’s use them too see what’s going there.
Also put an screenshot with the beginning of measurements, with your language and numbers system.