Index: glossify.module
===================================================================
--- glossify.module	(revision 6756)
+++ glossify.module	(working copy)
@@ -371,7 +371,8 @@
   }
   else {
     if (isset($html->tag) && $html->tag !== 'root') {
-      if ($configuration['only_first'] && $replaced == 0) {
+      if ($replaced == 0) {
+        $temp_replaced = 0;
         if ($configuration['break']) {
           $html->innertext = preg_replace('/\b'.$term_title.'\b/', $replacement, $html->innertext, ($configuration['only_first'] ? 1 : -1), $temp_replaced);
         }
