Fix regression in namespace recognition