fix an error in function readPlayerInfo