Fix hero unit overflow