fixed the search for the post index pafe