Fixed event triggering when search ends.