Impersonation not working on some versions of agents