fix bad use of attribute