fix device pagination