Fix aad impersonation issue