try to fix the pagination links