fixed bug on pagination in TablePager