Fixed bug in Event Api for search