Bugfix for event search.