fixed the event search