fix issue with pager not showing the active page