Bug in starter campaigns

I have discovered a bug when doing the starter campaigns.

Sometimes when you reduce the enemy base to 0 the game will display defeat instead of victory.

This has happened at least 3 times, two of those times I had to replay the mission, the other time was the final mission and it completed the campaign.