Fix ajax pagination