Fixed pagination on indexes