fix bug on namespaces with space characters