player death segfault fix