fixed dumb mistake on attribute setting