bug fix when player disconnects

bug fix when player disconnects