Fixed paging bug in example