fix improper use of attr() to retrieve and set dynamic properties.