Fixed segfault on player join