Fix a bug in the player JSON creation