Fix event search

Fixes #137.