Fixed error with attribute references in older code.