Fixed a bug where impersonate would make an incorrect assertion