fix bug with namespaced attributes