In my experience ‘squadron name’ isn’t really used for anything… and if that were a problem it seems like it’d cause problems elsewhere. But just in case I gave it a try, putting unique text in the squadron name field for all of them, and it didn’t change the behavior any.
It doesn’t appear your code is the problem (although I struggled and fought with my inner code-berevity-OCD), but here’s something I noticed about wave 2 versus the other waves:
Wave 2 is 100% frigates. The other waves are just Support Frigate + Strikecraft.
If you change wave 2 to Support Frigate + Strikecraft, does it still misfunction? What about Assault/Ion Frgiate + Strikecraft?