--- workflow/workflow.module	2007-03-02 14:51:57.000000000 -0600
+++ workflow.module	2007-03-05 10:32:11.000000000 -0600
@@ -478,9 +478,6 @@
   // Notify modules that transition has occurred. Actions should take place
   // in response to this callback, not the previous one.
   module_invoke_all('workflow', 'transition post', $old_sid, $sid, $node);
-  
-  // clear any references in the scheduled listing
-  db_query('DELETE FROM {workflow_scheduled_transition} WHERE nid = %d', $node->nid);
 }
 
 /**
@@ -1941,6 +1938,9 @@
       
     }
   }
+
+  // clear any references in the scheduled listing
+  db_query('DELETE FROM {workflow_scheduled_transition} WHERE scheduled < %d', time());
   
   if ($clear_cache) {
     // clear the cache so an anonymous poster can see the node being published or unpublished
