Fix namespaced attributes

Fixes #3.