Fixes item attribute setting.

Fixes item attribute setting. Was setting ID instead of correct attribute due to copy/paste.