fixed issue with setattribute and value