fix two crashes, and undead heroes