fix crash when go to search