attributes: fix (invalid) attributes, was generating a TypeError
Merge pull request #2 from fujin/feature/fix-type-error-in-attributes

attributes: fix (invalid) attributes, was generating a TypeError