Fixed generated namespace when namespace is global.