fixed a crash when the agamemnon dies