Fix issue with totalRows and totalPages always being 1