Fix to Gui if died in battle.

Fix to Gui if died in battle.