The program improves over time; this mismatch is now being checked.
Usually, you can just set the pokemon to a slot real quick and it'll fix small mistakes like this for you automatically. Depending on how you're injecting something, like a trade bot, the bot will update the handler state automatically as well to match the trade bot's details.