fix of cIndex in paging
Merge pull request #2 from rromanovsky/master

fix of cIndex in paging