diff --git a/pathauto.pathauto.inc b/pathauto.pathauto.inc
index 6f9f282..cade022 100644
--- a/pathauto.pathauto.inc
+++ b/pathauto.pathauto.inc
@@ -171,6 +171,7 @@ function taxonomy_pathauto_bulk_update_batch_process(&$context) {
   if ($forum_vid = variable_get('forum_nav_vocabulary', '')) {
     $query->condition('td.vid', $forum_vid, '<>');
   }
+  $query->condition('td.tid', $context['sandbox']['current'], '>');
   $query->orderBy('td.tid');
   $query->addTag('pathauto_bulk_update');
   $query->addMetaData('entity', 'taxonomy_term');
@@ -232,7 +233,8 @@ function forum_pathauto_bulk_update_batch_process(&$context) {
   $query->leftJoin('url_alias', 'ua', "CONCAT('forum/', td.tid) = ua.source");
   $query->addField('td', 'tid');
   $query->isNull('ua.source');
-  $query->condition('vid', variable_get('forum_nav_vocabulary', ''));
+  $query->condition('td.vid', variable_get('forum_nav_vocabulary', ''));
+  $query->condition('td.tid', $context['sandbox']['current'], '>');
   $query->orderBy('td.tid');
   $query->addTag('pathauto_bulk_update');
   $query->addMetaData('entity', 'taxonomy_term');
