AJAX pagination fixed