Fix auto-completion bug.