fix event missing when cancel search