Fixed authorization issue when anonymising token