Fix tab autocomplete not work