fix for namespace packages

cc/ @pas256 @bunjiboys