fixed crash after enemy dies