fixed bug with namespaces