Fixed issue where namespaces were being marked as modules