Unhide the hero interface icons, count how many you have. Ofc there are ways around it, such as saving all the stats and items of heros when they die then when you revive them you actually just create new ones and re-apply levels, items and stats and then it's like it's the same hero, but not the same hero and dodges this problem