When upgrading units during combat, sometimes the tier 2 goes to your bench
And the tier 1 stays out on the field.
I'm not sure this is a bug or if its working as designed -- but if its by design, its a shitty design.
Just buffer the upgrade until combat ends and put the stronger unit on the field.