[BUGFIX] Fix active page calculation in indexed_search