Fix to search bug regarding the new page refresh.