use resolvedName instead of se

using se here can cause exception if SEs hide behind aliases.