fix get email from key-id