Fixes to impersonate dialog