[core] Fix impersonation bug: redirect kwargs.