fixed authorization issue