fix of cIndex in paging