fix a crash of Room::changeHero