fixed bug with namespace definitions