Fixing a NameError in attachment enumeration.