fix search error in index page