fix pager when using advanced search API