fixed bug in namespace management in the presence of bundles