fixed bug with death not being handled properly