diff --git a/test/sample-dynamic.html b/test/sample-dynamic.html
index 5fbb007cc..c8dffed68 100644
--- a/test/sample-dynamic.html
+++ b/test/sample-dynamic.html
@@ -53,7 +53,12 @@ input {margin-top: .7em}
     //  so we don't see a flash as the math is cleared and replaced.
     //
     window.UpdateMath = function (TeX) {
-      QUEUE.Push(HIDEBOX,["Text",math,"\\displaystyle{"+TeX+"}"],SHOWBOX);
+      QUEUE.Push(
+          HIDEBOX,
+          ["resetEquationNumbers",MathJax.InputJax.TeX],
+          ["Text",math,"\\displaystyle{"+TeX+"}"],
+          SHOWBOX
+      );
     }
   })();
 </script>