Fix off-by-one error in page command on result index