Fix reference to data attr.
Only attempt association when object can be found.