diff --git a/core/modules/statistics/statistics.module b/core/modules/statistics/statistics.module
index a359981..191dbea 100644
--- a/core/modules/statistics/statistics.module
+++ b/core/modules/statistics/statistics.module
@@ -180,6 +180,7 @@ function statistics_menu() {
   $items['user/%user/track/navigation'] = array(
     'title' => 'Page visits',
     'page callback' => 'statistics_user_tracker',
+    'page arguments' => array(1),
     'access callback' => 'user_access',
     'access arguments' => array('access statistics'),
     'type' => MENU_LOCAL_TASK,
@@ -189,6 +190,7 @@ function statistics_menu() {
   $items['node/%node/track'] = array(
     'title' => 'Track',
     'page callback' => 'statistics_node_tracker',
+    'page arguments' => array(1),
     'access callback' => 'user_access',
     'access arguments' => array('access statistics'),
     'type' => MENU_LOCAL_TASK,
diff --git a/core/modules/statistics/statistics.pages.inc b/core/modules/statistics/statistics.pages.inc
index 6cf110c..a0e0be6 100644
--- a/core/modules/statistics/statistics.pages.inc
+++ b/core/modules/statistics/statistics.pages.inc
@@ -16,8 +16,7 @@
  *
  * @see statistics_menu()
  */
-function statistics_node_tracker() {
-  if ($node = node_load(arg(1))) {
+function statistics_node_tracker($node) {
     $header = array(
       array('data' => t('Time'), 'field' => 'a.timestamp', 'sort' => 'desc'),
       array('data' => t('Referrer'), 'field' => 'a.url'),
@@ -70,10 +69,6 @@ function statistics_node_tracker() {
     );
     $build['statistics_pager'] = array('#theme' => 'pager');
     return $build;
-  }
-  else {
-    throw new NotFoundHttpException();
-  }
 }
 
 /**
@@ -85,9 +80,7 @@ function statistics_node_tracker() {
  *
  * @see statistics_menu()
  */
-function statistics_user_tracker() {
-  if ($account = user_load(arg(1))) {
-
+function statistics_user_tracker($account) {
     $header = array(
       array('data' => t('Timestamp'), 'field' => 'timestamp', 'sort' => 'desc'),
       array('data' => t('Page'), 'field' => 'path'),
@@ -131,8 +124,4 @@ function statistics_user_tracker() {
     );
     $build['statistics_pager'] = array('#theme' => 'pager');
     return $build;
-  }
-  else {
-    throw new NotFoundHttpException();
-  }
 }
