Fix autopair when autocomplete is not activated