Fix bug in activitySearch