fixed bad reference to attribute