search and activity stream fixes