I still don't really understand the way the bug works but it takes the weapon and vitality stats from another hero
Probably it takes stats of the hero whose stats were checked first but it doesn't seem to work that way all the time
Spirit stats seem to display information correctly all the time tho