Fixed a bug with defeated character

fixes #389