Fixed search is triggered twice