Fixed an issue on the paginated table function when used on other pages