Fix warnings and a bug in nAEpName