Fix bug: last few data cannot display in table view for some given pageSize and totalCount.