Fix crash on search start up