fix closure around sending player state