fix bug search after add an item