Corrected error when searching by activity.