Check that index has pages before using number of pages in divide operation.
Attach a file by drag & drop or click to upload