fix authorization issue