Fixed the problem of the flag not being dropped when dead.