fixed segfault on player leave