add try catch for search activity to make the current version working