fix search redirect to index bug