diff --git a/src/velociraptor_interface.c b/src/velociraptor_interface.c
index a4e21baa7e1fd44a5b6d53f7de3330fae943a1b8..66a04a46e564c4180384c39ff8023505a2153d80 100644
--- a/src/velociraptor_interface.c
+++ b/src/velociraptor_interface.c
@@ -383,7 +383,7 @@ void velociraptor_invoke(struct engine *e, const int linked_with_snap) {
   free(swift_parts);
 
   /* Increase output counter (if not linked with snapshots) */
-  if (!e->snapshot_invoke_stf) e->stf_output_count++;
+  if (!linked_with_snap) e->stf_output_count++;
 
   if (e->verbose)
     message("took %.3f %s.", clocks_from_ticks(getticks() - tic),