Fix construction of attribute
Merge pull request #291 from korczis/fix-ctor-attributes

Fix construction of attribute