Fix ajax pager issue