Fixed pagination for resources.