Fix the bug causes autocomplete results are always nil