fix the issue when player name is empty