Fix bug for alias completion with cached data.