use resolvedName instead of se

using se here can cause exception if SEs hide behind aliases.
Merge pull request #2152 from andresailer/patch-4

[v6r11] Bug fix: use resolvedName instead of se