Bug fix for the search activities method.