diff --git a/Web/Presenters/AdminPresenter.php b/Web/Presenters/AdminPresenter.php
index 0465f036..0bc857e6 100644
--- a/Web/Presenters/AdminPresenter.php
+++ b/Web/Presenters/AdminPresenter.php
@@ -21,8 +21,8 @@ final class AdminPresenter extends OpenVKPresenter
$query = $this->queryParam("q") ?? "";
$page = (int) ($this->queryParam("p") ?? 1);
- $count = $repo->findCount($query);
- return $repo->find($query, $page);
+ $count = $repo->find($query)->size();
+ return $repo->find($query)->page($page, 20);
}
function onStartup(): void
diff --git a/Web/Presenters/templates/Admin/Users.xml b/Web/Presenters/templates/Admin/Users.xml
index 17baab8d..9b25a62b 100644
--- a/Web/Presenters/templates/Admin/Users.xml
+++ b/Web/Presenters/templates/Admin/Users.xml
@@ -58,7 +58,7 @@