Fix namespace-aware autocomplete