[auto-complete] Fix auto-complete is required before the package is ensured.