fix bug in attributes

was using wrong id