Fix auto completion bug.