Fix auto trigger search function with updated value