diff --git a/xmlsitemap_custom/xmlsitemap_custom.admin.inc b/xmlsitemap_custom/xmlsitemap_custom.admin.inc
index badf23dfd3874e72f1abb11db6b832d36f93baaa..6889ec7593c102ea70f282634ce0e2520728054b 100644
--- a/xmlsitemap_custom/xmlsitemap_custom.admin.inc
+++ b/xmlsitemap_custom/xmlsitemap_custom.admin.inc
@@ -21,11 +21,13 @@ function xmlsitemap_custom_list_links() {
   $rows = array();
   $destination = drupal_get_destination();
 
-  $query = db_select('xmlsitemap');
+  $query = db_select('xmlsitemap')
+    ->extend('PagerDefault')
+    ->extend('TableSort');
   $query->fields('xmlsitemap');
   $query->condition('type', 'custom');
-  $query->extend('PagerDefault')->limit(50);
-  $query->extend('TableSort')->orderByHeader($header);
+  $query->limit(25);
+  $query->orderByHeader($header);
   $result = $query->execute();
 
   foreach ($result as $link) {