fixes in setting attributes