Fix construction of attribute