Fix auto-complete does not load bug