Fix use of wrong union arm in linked_attributes module