autocomplete and mid-word complete fix