fixed switchplayer bug