Fix attribute accessing
Merge pull request #15 from Kartstig/fix-math

Fix attribute accessing