Fixed a bug where the player could crash the server by rejoining