correcting hard-coded reference to attribute.