fixes server player leaving bug